package modelLayer;
import java.util.Date;
import java.util.ArrayList;
public class DVD
{
    private int barcode;
    private String title;
    private String artist;
    private String publicationDate;
    private ArrayList<Copy> copys;
    public DVD(int barcode, String title, String artist, String publictionDate)
    {
        this.barcode = barcode;
        this.title = title;
        this.artist = artist;
        this.publicationDate = publicationDate;
        copys = new ArrayList<Copy>();
    }
    public int getBarcode()    
    {
        return barcode;
    }
    public void setBarcode(int barcode)
    {
        this.barcode = barcode;
    }
     public String getTitle()    
    {
        return title;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }
     public String getartist()    
    {
        return artist;
    }
    public void setartist(String artist)
    {
        this.artist = artist;;
    }
     public String getpublicationDate()    
    {
        return publicationDate;
    }
    public void setpublicationDate(String publicationDate)
    {
        this.publicationDate = publicationDate;
    }    
    public void addCopy(Copy copy)
    {
        copys.add(copy);
    }
    public ArrayList<Copy> getCopys()
    {
        return copys;
    }
}
